home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / apsabstract.sty (.txt) < prev    next >
LaTeX Document  |  1993-04-01  |  15KB  |  329 lines

  1. % APS abstract style.  June 26, 1989.
  2. % Written by
  3. %    Charles Karney
  4. %    Plasma Physics Laboratory  Phone:    +1 609 243 2607
  5. %    Princeton University       MFEnet:   Karney@PPC.MFEnet
  6. %    PO Box 451                 Internet: Karney%PPC.MFEnet@NMFECC.LLNL.GOV
  7. %    Princeton, NJ 08543-0451   Bitnet:   Karney%PPC.MFEnet@LBL.Bitnet
  8. % with contributions from Cris Barnes and Tom Murphy.
  9. \typeout{Document Substyle 'APS abstract'.  Released 26 June 1989}
  10. % ******************** User documentation ********************
  11. % APSABSTRACT: LaTeX style for abstracts submitted to American Physical
  12. % Society conferences.
  13. % Summary.  This following is a minimal abstract.
  14. %   \documentstyle[11pt,apsabstract,dpp1989]{article}
  15. %   \submittedby{Charles F. F. Karney}
  16. %   \submittedaddress{Princeton Plasma Physics Laboratory\\
  17. %   P.O. Box 451\\Princeton, NJ 08543-0451}
  18. %   \category{1.6/T}
  19. %   \theory                  %  or \experiment or both
  20. %   \preferposter            %  or \preferoral or \nopreference
  21. %   \title{Current drive efficiency in a hot plasma\thanks
  22. %   {This work supported by DoE contract No.\ DE--AC02--76--CHO--3073.}}
  23. %   \author{C. F. F. Karney and B. J. Braams}
  24. %   \affiliation{Princeton University}
  25. %   \begin{document}
  26. %   \maketitle
  27. %   Body of abstract.  (This can include equations, bibliography, etc.)
  28. %   \end{document}
  29. % Details.
  30. % Specify apsabstract,dpp1989 (in this order) as optional arguments to
  31. % \documentstyle, e.g.,
  32. %   \documentstyle[11pt,apsabstract,dpp1989]{article}
  33. % (apsabstract contains the formatting commands.  dpp1989 includes the
  34. % information specific by the 1989 DPP meeting.)  11pt is the prefered size.
  35. % Place various declarations between \documentstyle and \begin{document}.
  36. % These are mostly self explanatory:
  37. %   \invitedabstract: If this is an invited abstract (print in landscape
  38. %     mode).  Many of the fields (\category, \preferposter, etc.) are
  39. %     irrelevant and are ignored.
  40. %   \submittedby{name}: Name of APS member submitting abstract
  41. %   \submittedaddress{address}: and his address (lines separated with \\)
  42. %   \category{number}: The subject category number
  43. %   \theory or \experiment or both: To get one of the experiment/theory
  44. %     boxes checked (optional)
  45. %   \preferposter or \preferoral or \nopreference: Ditto
  46. %   \placement{placment instructions}: optional
  47. %   \specialfacilities{special facilities}: optional
  48. %   \otherrequests{other requests}: optional
  49. %   \title{title}: The title of the abstract.  Probably should include
  50. %     something like
  51. %       \thanks{This work supported by DoE contract 
  52. %               No.\ DE--AC02--76--CHO--3073.}
  53. %   \author{authors}: Author list punctuated with commas (and `and')
  54. %   \affiliation{Princeton University}: Affiliation
  55. % For papers with authors from more than one institution, you can use
  56. % footnotes to indicate the affiliation of the minorities (via \thanks).  If
  57. % you want to list multiple affiliations in the heading, then use
  58. % \affiliation to specify the last institution and include the other
  59. % institutions in the author list (in italics).  Thus
  60. %   \author{A. Shadrack, B. Misheck, 
  61. %           C. Abednego, {\it Princeton University}, and
  62. %           N. Nebuchadnezzar}
  63. %   \affiliation{Babylonian Institute of Furnaces}
  64. % Stick \maketitle between \begin{document} and the body of the abstract.
  65. % Pretty much anything can go into the body of the abstract.  LaTeX thinks
  66. % you are merely typing an ordinary paper that happens to have a small
  67. % \textheight and \texwidth.
  68. % LaTeX normally sets footnotes in \footnotesize.  This is probably too
  69. % small considering that APS abstracts get reduced when printed in the
  70. % Bulletin of the APS.  Therefore, both footnotes and references are set in
  71. % \referencesize, which apsabstract.sty defines to be \normalsize.  If you
  72. % would like these set smaller, try
  73. %   \renewcommand{\referencesize}{\small}
  74. % You'll know if your abstract is too long if it spills over onto a second
  75. % page.  Try changing to 10pt type.  Or else, reduce the baseline separation
  76. % with \renewcommand{\baselinestretch}{0.9}.
  77. % A complete abstract is given in tex$doc:apstest.tex.
  78. % ******************** End of user documentation ********************
  79. % SEE END OF FILE FOR INSTALLER'S INSTRUCTIONS
  80. \textwidth=120mm       \textheight=105mm    % APS rules
  81. \oddsidemargin=25mm    \topmargin=-15mm
  82. \parskip=0pt
  83. \headheight=31mm
  84. \headsep=5ex
  85. \onecolumn \raggedbottom \sloppy
  86. \def\baselinestretch{1}
  87. \newif\if@invited \@invitedfalse
  88. \def\invitedabstract{\@invitedtrue
  89.   \textheight=4.7in \textwidth=8.2in   % Invited abstracts are larger
  90.   \headsep=2ex                         % The title etc. is part of the header
  91.   \parindent=0pt                       % First line of body is not indented
  92.   \headheight=40mm
  93.   \topmargin=0mm
  94.   \oddsidemargin=11mm
  95. % All the field declarations
  96. \def\conference#1{\gdef\@conference{#1}}              \conference{}
  97. \def\location#1{\gdef\@location{#1}}                  \location{}
  98. \def\date#1{\gdef\@date{#1}}                          \date{}
  99. \def\mailto#1{\gdef\@mailto{#1}}                      \mailto{}
  100. \def\receiptdate#1{\gdef\@receiptdate{#1}}            \receiptdate{}
  101. \def\category#1{\gdef\@category{#1}}                  \category{}
  102. \def\submittedby#1{\gdef\@submittedby{#1}}            \submittedby{}
  103. \def\submittedaddress#1{\gdef\@submittedaddress{#1}}  \submittedaddress{}
  104. \def\title#1{\gdef\@title{#1}}                        \title{}
  105. \def\author#1{\gdef\@author{#1}}                      \author{}
  106. \def\affiliation#1{\gdef\@affiliation{#1}}            \affiliation{}
  107. \def\experiment{\gdef\@experiment{y}}
  108. \def\theory{\gdef\@theory{y}}
  109. \gdef\@experiment{}\gdef\@theory{}
  110. \def\preferposter
  111.    {\gdef\@preferposter{y}\gdef\@preferoral{}\gdef\@nopreference{}}
  112. \def\preferoral
  113.    {\gdef\@preferposter{}\gdef\@preferoral{y}\gdef\@nopreference{}}
  114. \def\nopreference
  115.    {\gdef\@preferposter{}\gdef\@preferoral{}\gdef\@nopreference{y}}
  116. \gdef\@preferposter{}\gdef\@preferoral{}\gdef\@nopreference{}
  117. \def\placement#1{\gdef\@placement{#1}}                \placement{}
  118. \def\specialfacilities#1{\gdef\@specialfacilities{#1}}\specialfacilities{}
  119. \def\otherrequests#1{\gdef\@otherrequests{#1}}        \otherrequests{}
  120. % Most of the formatting goes into the header and footer.
  121. % Define the myheadings to get the top and bottom typeset
  122. \def\ps@myheadings{\let\@mkboth\@gobbletwo
  123. \def\@oddhead{\@maketop}\def\@oddfoot{\@makebottom}%
  124. \def\@evenhead{}\def\@evenfoot{}}
  125. \pagestyle{myheadings}
  126. % Need to define \pagenumbering even though pagestyle is empty
  127. %  in order to get \thepage defined
  128. \pagenumbering{arabic}
  129. % Boxes with/without X's
  130. \newbox\@emptybox   \newbox\@fullbox
  131. \setbox\@emptybox=\hbox{\lower1.5pt
  132.    \hbox{\unitlength=10pt\begin{picture}(1,1)(0,0)
  133.    \put(0,0){\framebox(1,1){}}\end{picture}}}
  134. \setbox\@fullbox=\hbox{\lower1.5pt
  135.    \hbox{\unitlength=10pt\begin{picture}(1,1)(0,0)
  136.    \put(0,0){\line(1,1){1}}\put(1,0){\line(-1,1){1}}
  137.    \put(0,0){\framebox(1,1){}}\end{picture}}}
  138. \def\@checkedbox{\copy\@fullbox}
  139. \def\@uncheckedbox{\copy\@emptybox}
  140. \def\@choosebox#1{\ifx\@empty#1\@uncheckedbox\else\@checkedbox\fi}
  141. % Top matter
  142. \def\@maketop{\hbox to \hsize{\hss
  143.     \vbox{\if@invited\else\hsize=180 mm \fi
  144.           \xpt\baselineskip=12pt\maketop}\hss}}
  145. \def\maketop{%
  146.   {\centering
  147.     {\xipt\bf\if@invited Invited \fi\@conference\\[1ex]
  148.       \ifx\@empty\@location  \else\@location, \fi  % Location field is optional
  149.       \@date}\\[2ex]
  150.     \if@invited\vspace{7ex}\noindent\box\@titlebox\else
  151.     Category Number and Subject%
  152.     \ifx\@empty\@category\  \rule{5cm}{0.4pt} \relax\else
  153.           : {\xipt \@category} \fi\\[1ex]
  154.     \noindent
  155.     \@choosebox{\@theory}\ Theory\qquad
  156.     \@choosebox{\@experiment}\ Experiment \\ \fi
  157. % Bottom matter
  158. \def\@makebottom{\if@invited\else\hbox to \hsize{\hss
  159.    \vbox{\hsize=180 mm \xpt\baselineskip=12pt \makebottom}\hss}\fi}
  160. \def\makebottom{%
  161.   {\vspace{\headsep}
  162.     \def\rrule{\penalty0
  163.     \rule{0pt}{15pt}\rule{57mm}{0.4pt}}\parindent=0pt\parskip=0pt
  164.     \hspace{18mm}
  165.     \begin{minipage}[t]{65mm}\raggedright\sloppy
  166.       \def\@para##1{\par\noindent\hangindent=6mm
  167.       \hbox to \hangindent{##1\hfil}}
  168.       \@para{\@choosebox{\@preferposter}}Prefer Poster Session
  169.       \@para{\@choosebox{\@preferoral}}Prefer Oral Session
  170.       \@para{\@choosebox{\@nopreference}}No Preference
  171.       \@para{\@choosebox{\@placement}}This poster/oral should be
  172.               placed in the following grouping:
  173.       \@para{}\ifx\@empty\@placement\rrule\rrule\else
  174.               {\xipt\bf \@placement}\fi
  175.       \@para{\@choosebox{\@specialfacilities}}Special Facilities Requested
  176.       \@para{}\ifx\@empty\@specialfacilities\rrule\rrule\else
  177.              {\xipt\bf \@specialfacilities}\fi
  178.       \@para{\@choosebox{\@otherrequests}}Other Special Requests
  179.       \@para{}\ifx\@empty\@otherrequests\rrule\rrule\else
  180.              {\xipt\bf \@otherrequests}\fi
  181.     \end{minipage}%
  182.     \hspace{25mm}%
  183.     \begin{minipage}[t]{65mm}
  184.       Submitted by:\par
  185.       \vspace{30pt}\hrule
  186.       (\strut Signature of APS Member) \par
  187.       \begin{flushleft}
  188.         \@submittedby\\\@submittedaddress
  189.       \end{flushleft}
  190.     \end{minipage}
  191.   \par\vspace{10pt}\noindent
  192.   {\xipt
  193.     This form, or a reasonable facsimile, plus {\large\bf TWO XEROX COPIES},
  194.     must be received by {\large\bf NO LATER THAN NOON}, \@receiptdate\
  195.     at the following address:\par}
  196.   \begin{flushleft}\leftskip=18mm\relax
  197.     \@mailto
  198.   \end{flushleft}
  199. \let\abstract\relax     % So text can optionally be put in abstract environment
  200. % Set the title
  201. \def\maketitle{\par
  202.  \begingroup
  203.    \def\@makefnmark{\hbox   
  204.        to 0pt{$^{\@thefnmark}$\hss}}   
  205.    \if@twocolumn               
  206.      \twocolumn[\@maketitle]   
  207.      \else \newpage
  208.      \global\@topnum\z@        % Prevents figures from going at top of page.
  209.      \@maketitle \fi\thispagestyle{myheadings}\@thanks
  210.  \endgroup
  211.  \let\maketitle\relax
  212.  \let\@maketitle\relax
  213.  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax\@gobblecr}
  214. \long\def\@gobble#1{}  % So gobble can discard a \par
  215. \newbox\@titlebox
  216. \def\@maketitle{\if@invited
  217.   \newpage\par\global\setbox\@titlebox
  218.     \vbox{\hsize\columnwidth \@parboxrestore
  219.      {\large\bf \@title.}\strut\par
  220.      {\sc\@author}, {\it\@affiliation}\strut\par}
  221. \else
  222.   \newpage\par\noindent\kern .67in % 8 spaces at 12 chars/in
  223.   \relax{\large\bf\@title}\@.
  224.   {\sc\@author}, {\it\@affiliation}---%
  225. % Footnotes are handled by putting them in \box\@footins.  This is spat out
  226. % either by the bibliography or by \end{document}
  227. \newbox\@footins  % Declare a box for the footnotes
  228. \def\thefootnote{\fnsymbol{footnote}}  % Use symbols for footnotes
  229. % Redefine \LaTeX's \@footnotetext
  230. \long\def\@footnotetext#1{\global\setbox\@footins
  231.     \vbox{\unvbox\@footins
  232.     \referencesize
  233.     \hsize\columnwidth \@parboxrestore
  234.    \edef\@currentlabel{\csname p@mpfootnote\endcsname\@thefnmark}\@makefntext
  235.      {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}}}
  236. \long\def\@makefntext#1{\parindent 1em\noindent
  237.             $^{\@thefnmark}$#1}
  238. % The citations handled with superscript numbers as in aip style.
  239. % In addition, we have to put out the footnotes.
  240. \def\newblock{}
  241. \def\thebibliography#1{\vskip\skip\footins\footnoterule\unvbox\@footins
  242. \setcounter{biblionum}{0}\frenchspacing\referencesize}
  243. \let\endthebibliography=\par
  244. \@definecounter{biblionum}
  245. \def\@bibnum{\arabic{biblionum}}
  246. \def\bibitem#1{\stepcounter{biblionum}\par\noindent
  247.    $\m@th^{\@bibnum}$%
  248.    \if@filesw \immediate\write\@auxout
  249.        {\string\bibcite{#1}{\@bibnum}}\fi\ignorespaces}
  250. % Still using aip style citations
  251. \def\@cite#1#2{\unskip\nobreak\relax
  252.     \def\@tempa{$\m@th^{\hbox{\the\scriptfont0 #1}}$}%
  253.         \futurelet\@tempc\@citexx}
  254. \let\citea=\@cite
  255. \def\@citexx{\ifx.\@tempc\let\@tempd=\@citepunct\else
  256.         \ifx,\@tempc\let\@tempd=\@citepunct\else
  257.          \let\@tempd=\@tempa\fi\fi\@tempd}
  258. \def\@citepunct{\@tempc\edef\@sf{\spacefactor=\the\spacefactor\relax}\@tempa
  259.          \@sf\@gobble}
  260. \def\citenum#1{{\def\@cite##1{##1}\cite{#1}}}
  261. % Add check for \@footins in \enddocument
  262. \def\enddocument{\@checkend{document}
  263. \ifvoid\@footins\else\vskip\skip\footins\footnoterule\unvbox\@footins\fi
  264. \clearpage\begingroup
  265. \if@filesw \immediate\closeout\@mainaux
  266. \def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
  267. \def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
  268. \if@tempswa \@warning{Label(s) may have changed.  Rerun to get
  269. cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}
  270. \let\referencesize\normalsize
  271. \endinput
  272. ******************** INSTALLER'S INSTRUCTIONS ********************
  273. Put this file, apsabstract.sty into your standard texinputs directory.  You
  274. might want to extract the user documentation from the top of this file,
  275. edit it where appropriate and place it somewhere canonical (in your Local
  276. Guide, INFO system, or wherever).  You need to create a file describing the
  277. conference.  Here is a typical example, dpp1989.sty, for the 1989 Division
  278. of Plasma Physics meeting.  The format should be obvious.
  279. ******************** dpp1989.sty ********************
  280. \conference{Abstract Submitted for the Thirty-first Annual Meeting\\
  281.         Division of Plasma Physics}
  282. \date{November 13--17, 1989}
  283. \location{Anaheim, California}    % This is optional
  284. \mailto{Saralyn Stewart \\
  285. Institute for Fusion Studies \\
  286. RLM 11.234 \\
  287. The University of Texas at Austin \\
  288. Austin, TX\ \ 78712\\
  289. Telephone: (512) 471-4378}
  290. \receiptdate{Monday, July 10, 1989}
  291. ******************** End of dpp1989.sty ********************
  292. Here is the example refered to in the user documentation,
  293. tex$doc:apstest.tex:
  294. ******************** apstest.tex ********************
  295. % Test of APS abstract styles
  296. \documentstyle[11pt,apsabstract,dpp1989]{article}
  297. \newcommand{\DOEcredit}{This work supported by DoE contract
  298. No.\ DE--AC02--76--CHO--3073.}
  299. \submittedby{Charles F. F. Karney}
  300. \submittedaddress{Princeton Plasma Physics Laboratory\\
  301. P.O. Box 451\\Princeton, NJ 08543-0451}
  302. \category{1.6/T}
  303. \theory                  % one or both of \theory or \experiment
  304. \preferposter            % one of \preferposter or \preferoral or \nopreference
  305. % These three are optional
  306. \placement{next to paper by B. J. Braams and C. F. F. Karney}
  307. \specialfacilities{35mm movie projector}
  308. \otherrequests{Please schedule on Monday morning}
  309. \title{Current drive efficiency in a hot plasma\thanks{\DOEcredit}}
  310. \author{C. F. F. Karney and B. J. Braams}
  311. \affiliation{Princeton University}
  312. \begin{document}
  313. \maketitle
  314. The efficiency of current drive by rf waves may be computed by means of a
  315. response function \cite{AntChu82}.  Here we use the response function
  316. calculated for a relativistic plasma \cite{BraKar87} to calculate the
  317. efficiency of current drive by lower-hybrid and electron-cyclotron waves in
  318. a hot reactor plasma.  The results are compared to those obtained by
  319. neglecting either relativistic effects or the self-consistent reaction of
  320. the bulk on the tail electrons.
  321. \begin{thebibliography}{1}
  322. \bibitem{AntChu82} T. M. Antonsen and K. R. Chu, Phys.\ Fluids {\bf 25},
  323. 1295 (1982).
  324. \bibitem{BraKar87} B. J. Braams and C. F. F. Karney, Phys.\ Rev.\ Lett.\
  325. {\bf 59}, 1817 (1987).
  326. \end{thebibliography}
  327. \end{document}
  328. ******************** End of apstest.tex ********************
  329.